//
//  RecommendTopView.m
//  Inner  Voice
//
//  Created by Martin.Wang on 16/3/3.
//  Copyright © 2016年 徐海宇. All rights reserved.
//

#import "RecommendTopView.h"
//static RecommendTopView *manager = nil;

@implementation RecommendTopView
//+ (RecommendTopView *)defaultManager {
//    
//    if (!manager){
//        manager = [[self alloc] init];
//        return manager;
//    }
//    
//    return manager;
//}
//
//- (RecommendTopView *)customView{
//    
//    RecommendTopView *view = [[RecommendTopView alloc] initWithFrame:CGRectMake(0, 0, 300, 30)];
//    view.backgroundColor = [UIColor blackColor];
//    
//    [self.recommendBtn setTitle:@"推荐" forState:UIControlStateNormal];
//    
//    [self.recommendBtn setTitleColor:[UIColor greenColor] forState:UIControlStateSelected];
//    
//    [self.recommendBtn setTitleColor:[UIColor grayColor] forState:UIControlStateNormal];
//        
//    [view addSubview:self.recommendBtn];
//    
//    
//    [self.hotBtn setTitle:@"热门" forState:UIControlStateNormal];
//    
//    [self.hotBtn setTitleColor:[UIColor greenColor] forState:UIControlStateSelected];
//    
//    [self.hotBtn setTitleColor:[UIColor grayColor] forState:UIControlStateNormal];
//    
//    [view addSubview:self.hotBtn];
//    
//    return view;
//    
//}

//推荐   热门 2张图片  2中状态

- (IBAction)recommendaction:(id)sender {

    self.hotBtn.selected = NO;
    self.recommendBtn.selected = YES;
    
    self.recommendBtnAction();
}

- (IBAction)hotBtnClick:(id)sender {
    
    self.hotBtn.selected = YES;
    self.recommendBtn.selected = NO;
    
    self.hotBtnAction();

}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
